﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Xml.Serialization;
using System.Web;
using System.Reflection;
namespace AtKardesler.Data
{
    internal class UsersPresenter
    {
        internal static Users GetUsers()
        {
            try
            {
                Stream sr = Assembly.GetExecutingAssembly().GetManifestResourceStream("AtKardesler.Data.Data.UserInformation.xml");
                using (sr)
                {
                    XmlSerializer serializer = new XmlSerializer(typeof(Users));
                    return (Users)serializer.Deserialize(sr);
                }
            }
            catch (Exception ex)
            {
                //TODO EKALFA Logging
                throw;
            }
        }
    }
}
